<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<html>
<head>
  <script language="JavaScript" src="<%=request.getContextPath()+"/js/gen_validatorv31.js"%>" type="text/javascript"></script>
 </head>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ts_picker.js"> </script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/general.js"> </script>
    <script language="javascript" src="<%=request.getContextPath()%>/js/ts_picker.js"></script>
    <body bgcolor="">
<form action="<%=request.getContextPath()+"/ExamSchedule"%>" name=register>


<jsp:include page="Header.jsp"></jsp:include>

    <font color="#4D88DB"><h3 align="center">Exam Schedule</h3></font>
    <table align="center">
    <tr><td><b><font color="">Subject:</td><td><input type="text" name="subj"/></td></tr>
    <tr><td><b><font color="">ExamDate:</td><td><input type="text" name="examdate"/>
      <a href="javascript:show_calendar('document.register.examdate',document.register.examdate.value);"> <img src="<%=request.getContextPath()+"/images/cal.gif"%>" alt="c" width="18" height="18" border="0"/></a>
      </td></tr>
    <tr><td><b><font color="">Day:</td><td><input type="text" name="day"/></td></tr>
    <tr><td><b><font color="">Time:</td><td><input type="text" name="time"/></td></tr>
<tr><td></td><td><input type="submit" value="Insert"/></td></tr></table><br><br>

</form>
<script language="JavaScript" type="text/javascript">
//You should create the validator only after the definition of the HTML form
  var frmvalidator  = new Validator("register");

  frmvalidator.addValidation("subj","req","SubjectName is required");
    frmvalidator.addValidation("subj","alpha","SubjectName is Only Characters");
    frmvalidator.addValidation("examdate","req","examdate is required");
    frmvalidator.addValidation("time","req","Time is required");
    frmvalidator.addValidation("time","numeric");
        frmvalidator.addValidation("day","req","day is required");
  </script>
  <br/>
  <jsp:include page="Footer.jsp"></jsp:include>
  
  
  </body>
  </html>



		